
package com.eyedog.video.advui;

import android.os.Bundle;
import android.text.TextUtils;
import android.view.ViewStub;
import android.widget.FrameLayout;

import com.eyedog.uilibrary.base.BaseActivity;
import com.eyedog.video.R;
import com.eyedog.video.webview.WebFragment;

public class AdvActivity extends BaseActivity {

    FrameLayout mLayout;

    public static Bundle createBundle(int fromTYPE, String url) {
        if (TextUtils.isEmpty(url))
            return null;
        Bundle data = WebFragment.createBundle(fromTYPE, url);
        return data;
    }

    @Override
    protected void onContentCreated(ViewStub contentLayout) {
        Bundle data = getIntent().getExtras();
        WebFragment webFragment = new WebFragment();
        webFragment.setArguments(data);
        getSupportFragmentManager().beginTransaction().replace(R.id.fl_content, webFragment)
                .commit();
    }
}
